package com.damuzee.common.excepiton;

public class AlwaysExistUserException extends Exception {

	private Object extraInfo;

	public AlwaysExistUserException() {

	}

	public AlwaysExistUserException(String msg) {
		super(msg);
	}

	public AlwaysExistUserException(String msg, Object extraInfo) {
		super(msg);
		this.extraInfo = extraInfo;
	}

	/**
	 * Any additional information about the exception. Generally a
	 * <code>UserDetails</code> object.
	 * 
	 * @return extra information or <code>null</code>
	 */
	public Object getExtraInformation() {
		return extraInfo;
	}

	public void clearExtraInformation() {
		this.extraInfo = null;
	}

}
